Coding a Standard License Authorization/Request

This section describes the prerequisites:

Include Libraries

Licensing library specific to your platform, including the dependent libraries specific to your environment.

Include Header File(s )

lserv.h

Declare Variables
unsigned char  *license_system;
unsigned char  *publisher_name;
unsigned char  *product_name;
unsigned char  *version;
unsigned long  units_reqd=1;
unsigned char  *log_comment;
char           *Server name;
LS_CHALLENGE    challenge;
LS_HANDLE       lshandle;
API Calls

Use these API calls in your application to request a license when the application opens.

>VLSinitialize();

>VLSsetContactServer (Server name) or the LSFORCEHOST or LSHOST environment variables

>VLSdisableAutoTimer and VLSdisableLocalRenewal (if needed to implement the update call)

>LSRequest(license_system, publisher_name, product_name, version, &units_reqd, log_comment, &challenge, &lshandle);

You may use other request API as needed:

>VLSqueuedRequest

>VLS_REQUEST

> VLSqueuedRequestExt

>VLSrequestExt2

>VLSrequestExt

> VLSlicense